<div class="categories view">
<h2><?php  __($category['Category']['name']);?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>

            <?php
		$i = 0;
		foreach ($category['images'] as $images):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
        <div class="thumb_img">
        <?php echo $this->Html->link(
        $this->Html->image('album/album_'.$images['categorie_id'].'/thumbnails/imagen_' .$images['location'],
                array('alt' => $images['name'])),
        '/img/album/album_'.$images['categorie_id'].'/medium/imagen_' . $images['location'],
        array('class' => 'grouped', 'rel' => 'group', 'title' => $images['description'],'escape' => false)
                ); ?>
            <br>
        <?php echo $this->Html->link(__('View', true), array('action' => 'view', $images['id']), array('class' => 'thumb_img_action')); ?>
       </div>
		
	<?php endforeach; ?>

	</dl>


</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('List Categories', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Images', true), array('controller' => 'images', 'action' => 'index')); ?> </li>
		
	</ul>
</div>
<div class="related">
	<h3><?php __('Description');?></h3>
	<?php if (!empty($category['images'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php if ($i++ % 2 == 0) echo $class;?>
			<?php echo $category['Category']['description']; ?></th>

	</tr>
	
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Images', true), array('controller' => 'images', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
